Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139766
b: refs/heads/master
c: 651d062
h: refs/heads/master
v: v3
  • Loading branch information
Coly Li authored and Linus Torvalds committed Apr 3, 2009
1 parent b6c34d3 commit 9901d4b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5b76dc066a4deb937665521566f89aead756f049
refs/heads/master: 651d0623045d3265a21ab9803b3a1e0f24a17461
1 change: 1 addition & 0 deletions trunk/fs/reiserfs/Kconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
config REISERFS_FS
tristate "Reiserfs support"
select CRC32
help
Stores not just filenames but the files themselves in a balanced
tree. Uses journalling.
Expand Down
5 changes: 5 additions & 0 deletions trunk/fs/reiserfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <linux/mnt_namespace.h>
#include <linux/mount.h>
#include <linux/namei.h>
#include <linux/crc32.h>

struct file_system_type reiserfs_fs_type;

Expand Down Expand Up @@ -1904,6 +1905,10 @@ static int reiserfs_statfs(struct dentry *dentry, struct kstatfs *buf)
buf->f_bsize = dentry->d_sb->s_blocksize;
/* changed to accommodate gcc folks. */
buf->f_type = REISERFS_SUPER_MAGIC;
buf->f_fsid.val[0] = (u32)crc32_le(0, rs->s_uuid, sizeof(rs->s_uuid)/2);
buf->f_fsid.val[1] = (u32)crc32_le(0, rs->s_uuid + sizeof(rs->s_uuid)/2,
sizeof(rs->s_uuid)/2);

return 0;
}

Expand Down

0 comments on commit 9901d4b

Please sign in to comment.