summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNikhilesh Reddy <reddyn@codeaurora.org>2016-05-04 17:54:50 -0700
committerAnkit Jain <jankit@qti.qualcomm.com>2017-07-17 11:39:09 +0530
commit1b4ccee62448389f498c9e27c2dcbd7b507a8240 (patch)
tree8460d9c88e1130fd9ef5897b998593827e11ab8b /include
parentd9fbe4b9210bcf0b7553d224f1c7390c15b91022 (diff)
vfs: Add support to debug umount failures
When umount of a partition fails with EBUSY there is no indication as to what is keeping the mount point busy. Add support to print a kernel log showing what files are open on this mount point. Also add a new new config option CONFIG_FILE_TABLE_DEBUG to enable this feature. Change-Id: Id7a3f5e7291b22ffd0f265848ec0a9757f713561 Signed-off-by: Nikhilesh Reddy <reddyn@codeaurora.org> Signed-off-by: Ankit Jain <ankijain@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/fs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 4b27be2038e3..df1171bada01 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -912,6 +912,10 @@ struct file {
struct list_head f_tfile_llink;
#endif /* #ifdef CONFIG_EPOLL */
struct address_space *f_mapping;
+
+#ifdef CONFIG_FILE_TABLE_DEBUG
+ struct hlist_node f_hash;
+#endif /* #ifdef CONFIG_FILE_TABLE_DEBUG */
} __attribute__((aligned(4))); /* lest something weird decides that 2 is OK */
struct file_handle {