提交 69383c59 编写于 作者: W Wei Yongjun 提交者: Miklos Szeredi

ovl: make symbol 'ovl_aops' static

Fixes the following sparse warning:

fs/overlayfs/inode.c:507:39: warning:
 symbol 'ovl_aops' was not declared. Should it be static?

Fixes: 5b910bd6 ("ovl: fix GPF in swapfile_activate of file from overlayfs over xfs")
Signed-off-by: NWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: NMiklos Szeredi <mszeredi@redhat.com>
上级 a725356b
...@@ -504,7 +504,7 @@ static const struct inode_operations ovl_special_inode_operations = { ...@@ -504,7 +504,7 @@ static const struct inode_operations ovl_special_inode_operations = {
.update_time = ovl_update_time, .update_time = ovl_update_time,
}; };
const struct address_space_operations ovl_aops = { static const struct address_space_operations ovl_aops = {
/* For O_DIRECT dentry_open() checks f_mapping->a_ops->direct_IO */ /* For O_DIRECT dentry_open() checks f_mapping->a_ops->direct_IO */
.direct_IO = noop_direct_IO, .direct_IO = noop_direct_IO,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册