aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/aops.c
diff options
context:
space:
mode:
authorMark Fasheh <mfasheh@suse.com>2008-11-18 19:53:43 -0500
committerMark Fasheh <mfasheh@suse.com>2009-01-05 11:36:55 -0500
commit53ef99cad9878f02f27bb30bc304fc42af8bdd6e (patch)
treebb5dcb223666197cf737d24e4cc87506c4473a79 /fs/ocfs2/aops.c
parent511308d90b53479b194cd067715f44dc99d39b08 (diff)
ocfs2: Remove JBD compatibility layer
JBD2 is fully backwards compatible with JBD and it's been tested enough with Ocfs2 that we can clean this code up now. Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/aops.c')
-rw-r--r--fs/ocfs2/aops.c24
1 files changed, 2 insertions, 22 deletions
diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
index e219f8b546ac..6af79adb2eca 100644
--- a/fs/ocfs2/aops.c
+++ b/fs/ocfs2/aops.c
@@ -474,12 +474,6 @@ handle_t *ocfs2_start_walk_page_trans(struct inode *inode,
474 474
475 if (ocfs2_should_order_data(inode)) { 475 if (ocfs2_should_order_data(inode)) {
476 ret = ocfs2_jbd2_file_inode(handle, inode); 476 ret = ocfs2_jbd2_file_inode(handle, inode);
477#ifdef CONFIG_OCFS2_COMPAT_JBD
478 ret = walk_page_buffers(handle,
479 page_buffers(page),
480 from, to, NULL,
481 ocfs2_journal_dirty_data);
482#endif
483 if (ret < 0) 477 if (ret < 0)
484 mlog_errno(ret); 478 mlog_errno(ret);
485 } 479 }
@@ -1065,15 +1059,8 @@ static void ocfs2_write_failure(struct inode *inode,
1065 tmppage = wc->w_pages[i]; 1059 tmppage = wc->w_pages[i];
1066 1060
1067 if (page_has_buffers(tmppage)) { 1061 if (page_has_buffers(tmppage)) {
1068 if (ocfs2_should_order_data(inode)) { 1062 if (ocfs2_should_order_data(inode))
1069 ocfs2_jbd2_file_inode(wc->w_handle, inode); 1063 ocfs2_jbd2_file_inode(wc->w_handle, inode);
1070#ifdef CONFIG_OCFS2_COMPAT_JBD
1071 walk_page_buffers(wc->w_handle,
1072 page_buffers(tmppage),
1073 from, to, NULL,
1074 ocfs2_journal_dirty_data);
1075#endif
1076 }
1077 1064
1078 block_commit_write(tmppage, from, to); 1065 block_commit_write(tmppage, from, to);
1079 } 1066 }
@@ -1912,15 +1899,8 @@ int ocfs2_write_end_nolock(struct address_space *mapping,
1912 } 1899 }
1913 1900
1914 if (page_has_buffers(tmppage)) { 1901 if (page_has_buffers(tmppage)) {
1915 if (ocfs2_should_order_data(inode)) { 1902 if (ocfs2_should_order_data(inode))
1916 ocfs2_jbd2_file_inode(wc->w_handle, inode); 1903 ocfs2_jbd2_file_inode(wc->w_handle, inode);
1917#ifdef CONFIG_OCFS2_COMPAT_JBD
1918 walk_page_buffers(wc->w_handle,
1919 page_buffers(tmppage),
1920 from, to, NULL,
1921 ocfs2_journal_dirty_data);
1922#endif
1923 }
1924 block_commit_write(tmppage, from, to); 1904 block_commit_write(tmppage, from, to);
1925 } 1905 }
1926 } 1906 }