diff options
author | Dave Kleikamp <shaggy@linux.vnet.ibm.com> | 2007-04-25 09:36:20 -0500 |
---|---|---|
committer | Dave Kleikamp <shaggy@linux.vnet.ibm.com> | 2007-04-25 09:36:20 -0500 |
commit | 3e2221c73cba7d33fd5706f9bc4906ffaf421478 (patch) | |
tree | ebc979a87bc04417b071b973bd3dd462717694ad /fs/jfs/ioctl.c | |
parent | ba863a0016a33637acc7888698a5d75096fcec05 (diff) | |
download | linux-3.10-3e2221c73cba7d33fd5706f9bc4906ffaf421478.tar.gz linux-3.10-3e2221c73cba7d33fd5706f9bc4906ffaf421478.tar.bz2 linux-3.10-3e2221c73cba7d33fd5706f9bc4906ffaf421478.zip |
Copy i_flags to jfs inode flags on write
This mirrors Jan Kara's patches for ext3. This patch makes sure that
changes made to inode->i_flags are reflected on disk for jfs. It also
moves a call of jfs_set_inode_flags() to be more consistent with where
jfs_get_inode_flags() is called.
Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
Diffstat (limited to 'fs/jfs/ioctl.c')
-rw-r--r-- | fs/jfs/ioctl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/jfs/ioctl.c b/fs/jfs/ioctl.c index ed814b1ff4d..fe063af6fd2 100644 --- a/fs/jfs/ioctl.c +++ b/fs/jfs/ioctl.c @@ -59,6 +59,7 @@ int jfs_ioctl(struct inode * inode, struct file * filp, unsigned int cmd, switch (cmd) { case JFS_IOC_GETFLAGS: + jfs_get_inode_flags(jfs_inode); flags = jfs_inode->mode2 & JFS_FL_USER_VISIBLE; flags = jfs_map_ext2(flags, 0); return put_user(flags, (int __user *) arg); @@ -78,6 +79,7 @@ int jfs_ioctl(struct inode * inode, struct file * filp, unsigned int cmd, if (!S_ISDIR(inode->i_mode)) flags &= ~JFS_DIRSYNC_FL; + jfs_get_inode_flags(jfs_inode); oldflags = jfs_inode->mode2; /* |