| To: | Andrew Morton <akpm@xxxxxxxx> |
|---|---|
| Subject: | [PATCH v2] xfs: drop dir checks on link(directory) |
| From: | Alexey Dobriyan <adobriyan@xxxxxxxxx> |
| Date: | Mon, 26 Jun 2006 00:43:22 +0400 |
| Cc: | linux-fsdevel@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:mime-version:content-type:content-disposition:user-agent; b=fDJtbWqYOyN8JunPstPjdw9ZmR8AFsE0nFcEQOjdHUsQjpWQd223LznLrKSsk6IsLUNQsNaN76ujlPkMa9SirJ8cCXAo3sDKyNpQGSFxwNRK9x7zaE/rju0L+5u05IcnVBo7toGhe7c/jC4pYgJWpeM5VENoi/BbhucNXfYW0lQ= |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.5.11 |
VFS bans it.
Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx>
---
fs/xfs/linux-2.6/xfs_iops.c | 2 --
fs/xfs/xfs_vnodeops.c | 2 --
2 files changed, 4 deletions(-)
--- a/fs/xfs/linux-2.6/xfs_iops.c
+++ b/fs/xfs/linux-2.6/xfs_iops.c
@@ -419,8 +419,6 @@ xfs_vn_link(
int error;
ip = old_dentry->d_inode; /* inode being linked to */
- if (S_ISDIR(ip->i_mode))
- return -EPERM;
tdvp = vn_from_inode(dir);
vp = vn_from_inode(ip);
--- a/fs/xfs/xfs_vnodeops.c
+++ b/fs/xfs/xfs_vnodeops.c
@@ -2603,8 +2603,6 @@ xfs_link(
vn_trace_entry(src_vp, __FUNCTION__, (inst_t *)__return_address);
target_namelen = VNAMELEN(dentry);
- if (VN_ISDIR(src_vp))
- return XFS_ERROR(EPERM);
sip = xfs_vtoi(src_vp);
tdp = XFS_BHVTOI(target_dir_bdp);
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH] xfs: update ->flush method proto, Alexey Dobriyan |
|---|---|
| Next by Date: | Re: [PATCH] xfs: update ->flush method proto, Al Viro |
| Previous by Thread: | [PATCH] xfs: update ->flush method proto, Alexey Dobriyan |
| Next by Thread: | TAKE 904196 - cleanup & warning fixes from Alexey, Nathan Scott |
| Indexes: | [Date] [Thread] [Top] [All Lists] |