ceph: maintain i_head_snapc when any caps are dirty, not just for data
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / fs / ceph / super.h
index b33929d8f287134792d390d57e7e0741d129e077..c33897ae5725e82ca269606b78d54214d8abf7af 100644 (file)
@@ -344,7 +344,8 @@ struct ceph_inode_info {
        unsigned i_cap_exporting_issued;
        struct ceph_cap_reservation i_cap_migration_resv;
        struct list_head i_cap_snaps;   /* snapped state pending flush to mds */
-       struct ceph_snap_context *i_head_snapc;  /* set if wr_buffer_head > 0 */
+       struct ceph_snap_context *i_head_snapc;  /* set if wr_buffer_head > 0 or
+                                                   dirty|flushing caps */
        unsigned i_snap_caps;           /* cap bits for snapped files */
 
        int i_nr_by_mode[CEPH_FILE_MODE_NUM];  /* open file counts */