]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/ceph/super.h
ceph: introduce i_truncate_mutex
[karo-tx-linux.git] / fs / ceph / super.h
index afcd62a68916e358676d4fa4e7b7abf3c94ecb43..f1e4e4766ea2d8cabf6126cd59a98f4568517895 100644 (file)
@@ -288,6 +288,7 @@ struct ceph_inode_info {
 
        int i_nr_by_mode[CEPH_FILE_MODE_NUM];  /* open file counts */
 
+       struct mutex i_truncate_mutex;
        u32 i_truncate_seq;        /* last truncate to smaller size */
        u64 i_truncate_size;       /*  and the size we last truncated down to */
        int i_truncate_pending;    /*  still need to call vmtruncate */