diff options
author | Joel Becker <joel.becker@oracle.com> | 2009-02-13 00:24:40 +0100 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2009-09-05 01:07:49 +0200 |
commit | 66fb345ddd2d343e36692da0ff66126d7a99dc1b (patch) | |
tree | 7e53f68bbf4c910cd81be7e39378d9552bbce4c3 /fs/ocfs2/ocfs2.h | |
parent | ocfs2: Take the inode out of the metadata read/write paths. (diff) | |
download | linux-66fb345ddd2d343e36692da0ff66126d7a99dc1b.tar.xz linux-66fb345ddd2d343e36692da0ff66126d7a99dc1b.zip |
ocfs2: move ip_last_trans to struct ocfs2_caching_info
We have the read side of metadata caching isolated to struct
ocfs2_caching_info, now we need the write side. This means the journal
functions. The journal only does a couple of things with struct inode.
This change moves the ip_last_trans field onto struct
ocfs2_caching_info as ci_last_trans. This field tells the journal
whether a pending journal flush is required.
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/ocfs2.h')
-rw-r--r-- | fs/ocfs2/ocfs2.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ocfs2/ocfs2.h b/fs/ocfs2/ocfs2.h index 6e54a496299e..c9bd7ce30ba6 100644 --- a/fs/ocfs2/ocfs2.h +++ b/fs/ocfs2/ocfs2.h @@ -77,6 +77,10 @@ struct ocfs2_caching_info { */ const struct ocfs2_caching_operations *ci_ops; + /* last transaction we were a part of. */ + unsigned long ci_last_trans; + + /* Cache structures */ unsigned int ci_flags; unsigned int ci_num_cached; union { |