]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Merge remote-tracking branch 'jfs/jfs-next'
authorStephen Rothwell <sfr@canb.auug.org.au>
Mon, 28 Apr 2014 01:47:57 +0000 (11:47 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 28 Apr 2014 01:47:57 +0000 (11:47 +1000)
fs/jfs/jfs_inode.c

index 7f464c513ba0a85a2fd4fe7923a9799bb319e92b..6b0f816201a229da76d9667f8aa65bbb61436ea9 100644 (file)
 void jfs_set_inode_flags(struct inode *inode)
 {
        unsigned int flags = JFS_IP(inode)->mode2;
-
-       inode->i_flags &= ~(S_IMMUTABLE | S_APPEND |
-               S_NOATIME | S_DIRSYNC | S_SYNC);
+       unsigned int new_fl = 0;
 
        if (flags & JFS_IMMUTABLE_FL)
-               inode->i_flags |= S_IMMUTABLE;
+               new_fl |= S_IMMUTABLE;
        if (flags & JFS_APPEND_FL)
-               inode->i_flags |= S_APPEND;
+               new_fl |= S_APPEND;
        if (flags & JFS_NOATIME_FL)
-               inode->i_flags |= S_NOATIME;
+               new_fl |= S_NOATIME;
        if (flags & JFS_DIRSYNC_FL)
-               inode->i_flags |= S_DIRSYNC;
+               new_fl |= S_DIRSYNC;
        if (flags & JFS_SYNC_FL)
-               inode->i_flags |= S_SYNC;
+               new_fl |= S_SYNC;
+       inode_set_flags(inode, new_fl, S_IMMUTABLE | S_APPEND | S_NOATIME |
+                       S_DIRSYNC | S_SYNC);
 }
 
 void jfs_get_inode_flags(struct jfs_inode_info *jfs_ip)