]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hostfs: Add a BUG_ON to detect behavior changes of dentry_path_raw()
authorRichard Weinberger <richard@nod.at>
Tue, 3 Mar 2015 22:41:52 +0000 (23:41 +0100)
committerRichard Weinberger <richard@nod.at>
Thu, 26 Mar 2015 22:27:49 +0000 (23:27 +0100)
commitaad50b1e06081de0e4ff25335ab6f52e58bfcef1
tree66773b2796b62f1204147b551e4d6356d3cf4765
parent41761ddfaecb30e1f0ecac4ce568e3e641d10bec
hostfs: Add a BUG_ON to detect behavior changes of dentry_path_raw()

hostfs' __dentry_name() relies on the fact that dentry_path_raw() will place
the path name at the end of the provided buffer.
While this is okay, add a BUG_ON() to detect behavior changes as soon
as possible.

Signed-off-by: Richard Weinberger <richard@nod.at>
fs/hostfs/hostfs_kern.c