scst: Export scst_path_put()

This patch makes the code that was added via r5479 build against kernel
version 2.6.38 and before.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5485 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2014-04-28 09:29:25 +00:00
parent c2020a81b4
commit 9ee828de16
3 changed files with 4 additions and 4 deletions

View File

@@ -4749,6 +4749,9 @@ int scst_read_file_transactional(const char *name, const char *name1,
int scst_write_file_transactional(const char *name, const char *name1,
const char *signature, int signature_len, const uint8_t *buf, int size);
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39)
void scst_path_put(struct nameidata *nd);
#endif
int scst_remove_file(const char *name);
#endif /* __SCST_H */

View File

@@ -9771,6 +9771,7 @@ void scst_path_put(struct nameidata *nd)
path_put(&nd->path);
#endif
}
EXPORT_SYMBOL(scst_path_put);
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29)

View File

@@ -772,10 +772,6 @@ void scst_vfs_unlink_and_put(struct nameidata *nd);
void scst_vfs_unlink_and_put(struct path *path);
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39)
void scst_path_put(struct nameidata *nd);
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29)
int scst_vfs_fsync(struct file *file, loff_t loff, loff_t len);
#endif