Linux 3.9 compat: set_fs_root takes const struct path *

torvalds/linux@dcf787f391 enforces
const-correctness in passing struct path *.

Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
Richard Yao
2013-03-04 00:24:04 -05:00
committed by Brian Behlendorf
parent 2a305c34c8
commit a54718cfe0
2 changed files with 48 additions and 0 deletions
+4
View File
@@ -840,7 +840,11 @@ EXPORT_SYMBOL(releasef);
# ifdef HAVE_2ARGS_SET_FS_PWD
/* Used from 2.6.25 - 2.6.31+ */
void
# ifdef HAVE_SET_FS_PWD_WITH_CONST
set_fs_pwd(struct fs_struct *fs, const struct path *path)
# else
set_fs_pwd(struct fs_struct *fs, struct path *path)
# endif
{
struct path old_pwd;