]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Merge branch 'xfs-misc-fixes-for-4.1' into for-next
authorDave Chinner <david@fromorbit.com>
Mon, 23 Feb 2015 23:24:07 +0000 (10:24 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 23 Feb 2015 23:24:07 +0000 (10:24 +1100)
1  2 
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode.h
fs/xfs/xfs_iops.c
fs/xfs/xfs_qm.c

Simple merge
index a1cd55f3f351e1361e2a3ea790f88f5f5070e7e3,8e82b41d2050c2a2266eb38310453cb9d3f535ba..c73b63d51bc1d61183ab334389a426de25b621ac
@@@ -384,13 -384,34 +384,35 @@@ enum xfs_prealloc_flags 
        XFS_PREALLOC_INVISIBLE  = (1 << 4),
  };
  
 -int           xfs_update_prealloc_flags(struct xfs_inode *,
 -                      enum xfs_prealloc_flags);
 -int           xfs_zero_eof(struct xfs_inode *, xfs_off_t, xfs_fsize_t);
 -int           xfs_iozero(struct xfs_inode *, loff_t, size_t);
 +int   xfs_update_prealloc_flags(struct xfs_inode *ip,
 +                                enum xfs_prealloc_flags flags);
 +int   xfs_zero_eof(struct xfs_inode *ip, xfs_off_t offset,
 +                   xfs_fsize_t isize, bool *did_zeroing);
 +int   xfs_iozero(struct xfs_inode *ip, loff_t pos, size_t count);
  
  
+ /* from xfs_iops.c */
+ /*
+  * When setting up a newly allocated inode, we need to call
+  * xfs_finish_inode_setup() once the inode is fully instantiated at
+  * the VFS level to prevent the rest of the world seeing the inode
+  * before we've completed instantiation. Otherwise we can do it
+  * the moment the inode lookup is complete.
+  */
+ extern void xfs_setup_inode(struct xfs_inode *ip);
+ static inline void xfs_finish_inode_setup(struct xfs_inode *ip)
+ {
+       xfs_iflags_clear(ip, XFS_INEW);
+       barrier();
+       unlock_new_inode(VFS_I(ip));
+ }
+ static inline void xfs_setup_existing_inode(struct xfs_inode *ip)
+ {
+       xfs_setup_inode(ip);
+       xfs_finish_inode_setup(ip);
+ }
  #define IHOLD(ip) \
  do { \
        ASSERT(atomic_read(&VFS_I(ip)->i_count) > 0) ; \
Simple merge
diff --cc fs/xfs/xfs_qm.c
Simple merge