From: Andreas Dilger Date: Fri, 29 Apr 2016 20:48:52 +0000 (-0600) Subject: LU-6215 llite: remove obsolete conditional code X-Git-Tag: 2.8.53~3 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=9f4042fa3256d8b5146a711872759187f25965fe LU-6215 llite: remove obsolete conditional code Remove conditional flock/aops code that was only for out-of-tree vendor kernels but is not relevant anymore. Linux-commit: 3746e6f93bbf28a25d2d69350ab6bfba02e14654 Signed-off-by: Andreas Dilger Signed-off-by: Greg Kroah-Hartman Change-Id: If119a2da2bbc30a48d872029bd048ea90a3ebbe5 Reviewed-on: http://review.whamcloud.com/19890 Tested-by: Jenkins Reviewed-by: James Simmons Reviewed-by: Frank Zago Reviewed-by: John L. Hammond Tested-by: Maloo Reviewed-by: Dmitry Eremin Reviewed-by: Oleg Drokin --- diff --git a/lustre/llite/llite_internal.h b/lustre/llite/llite_internal.h index 26b3038..54a2186 100644 --- a/lustre/llite/llite_internal.h +++ b/lustre/llite/llite_internal.h @@ -823,11 +823,7 @@ struct ll_cl_context *ll_cl_find(struct file *file); void ll_cl_add(struct file *file, const struct lu_env *env, struct cl_io *io); void ll_cl_remove(struct file *file, const struct lu_env *env); -#ifndef MS_HAS_NEW_AOPS extern const struct address_space_operations ll_aops; -#else -extern const struct address_space_operations_ext ll_aops; -#endif /* llite/file.c */ extern struct file_operations ll_file_operations; diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c index 6bf0865..578b171 100644 --- a/lustre/llite/llite_lib.c +++ b/lustre/llite/llite_lib.c @@ -234,14 +234,6 @@ static int client_common_fill_super(struct super_block *sb, char *md, char *dt, if (sbi->ll_flags & LL_SBI_USER_XATTR) data->ocd_connect_flags |= OBD_CONNECT_XATTR; -#ifdef HAVE_MS_FLOCK_LOCK - /* force vfs to use lustre handler for flock() calls - bug 10743 */ - sb->s_flags |= MS_FLOCK_LOCK; -#endif -#ifdef MS_HAS_NEW_AOPS - sb->s_flags |= MS_HAS_NEW_AOPS; -#endif - if (sbi->ll_flags & LL_SBI_FLOCK) sbi->ll_fop = &ll_file_operations_flock; else if (sbi->ll_flags & LL_SBI_LOCALFLOCK) diff --git a/lustre/llite/rw26.c b/lustre/llite/rw26.c index ee17a73..b362532 100644 --- a/lustre/llite/rw26.c +++ b/lustre/llite/rw26.c @@ -806,7 +806,6 @@ static int ll_migratepage(struct address_space *mapping, } #endif -#ifndef MS_HAS_NEW_AOPS const struct address_space_operations ll_aops = { .readpage = ll_readpage, .direct_IO = ll_direct_IO, @@ -821,19 +820,3 @@ const struct address_space_operations ll_aops = { .migratepage = ll_migratepage, #endif }; -#else -const struct address_space_operations_ext ll_aops = { - .orig_aops.readpage = ll_readpage, - .orig_aops.direct_IO = ll_direct_IO, - .orig_aops.writepage = ll_writepage, - .orig_aops.writepages = ll_writepages, - .orig_aops.set_page_dirty = __set_page_dirty_nobuffers, - .orig_aops.invalidatepage = ll_invalidatepage, - .orig_aops.releasepage = ll_releasepage, -#ifdef CONFIG_MIGRATION - .orig_aops.migratepage = ll_migratepage, -#endif - .write_begin = ll_write_begin, - .write_end = ll_write_end -}; -#endif