[PATCH 04/25] AFS: call attr_kill_to_mode from afs_setattr

2007-08-06 Thread Jeff Layton
Not sure if this is necessary or desirable for AFS, but adding it for
consistency.

Signed-off-by: Jeff Layton <[EMAIL PROTECTED]>
---
 fs/afs/inode.c |3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/fs/afs/inode.c b/fs/afs/inode.c
index d196840..d0ad5e6 100644
--- a/fs/afs/inode.c
+++ b/fs/afs/inode.c
@@ -370,6 +370,9 @@ int afs_setattr(struct dentry *dentry, struct iattr *attr)
   vnode->fid.vid, vnode->fid.vnode, dentry->d_name.name,
   attr->ia_valid);
 
+   /* FIXME: is this necessary? */
+   attr_kill_to_mode(dentry->d_inode, attr);
+
if (!(attr->ia_valid & (ATTR_SIZE | ATTR_MODE | ATTR_UID | ATTR_GID |
ATTR_MTIME))) {
_leave(" = 0 [unsupported]");
-- 
1.5.2.2

-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 04/25] AFS: call attr_kill_to_mode from afs_setattr

2007-08-06 Thread Jeff Layton
Not sure if this is necessary or desirable for AFS, but adding it for
consistency.

Signed-off-by: Jeff Layton <[EMAIL PROTECTED]>
---
 fs/afs/inode.c |3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/fs/afs/inode.c b/fs/afs/inode.c
index d196840..d0ad5e6 100644
--- a/fs/afs/inode.c
+++ b/fs/afs/inode.c
@@ -370,6 +370,9 @@ int afs_setattr(struct dentry *dentry, struct iattr *attr)
   vnode->fid.vid, vnode->fid.vnode, dentry->d_name.name,
   attr->ia_valid);
 
+   /* FIXME: is this necessary? */
+   attr_kill_to_mode(dentry->d_inode, attr);
+
if (!(attr->ia_valid & (ATTR_SIZE | ATTR_MODE | ATTR_UID | ATTR_GID |
ATTR_MTIME))) {
_leave(" = 0 [unsupported]");
-- 
1.5.2.2

-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html