]> Git Repo - linux.git/commit
configfs: consistent attribute size
authorJoel Becker <[email protected]>
Fri, 22 Jun 2007 20:07:02 +0000 (13:07 -0700)
committerMark Fasheh <[email protected]>
Tue, 10 Jul 2007 23:52:22 +0000 (16:52 -0700)
commitb23cdde4c6240d70bb3d2e3c4046b60d6f6c8451
treeed1965f424197194def20aa1ed10867f9fac6836
parent4c75f7416f51b0c6855952467a5db04f9c598f09
configfs: consistent attribute size

The attribute store/show code currently limits attributes at PAGE_SIZE.
This code comes from sysfs, where it still works that way.

However, PAGE_SIZE is not constant.  A 16k attribute string works on
ia64 but not on x86.  Really a subsystem shouldn't allow different
attribute sizes based on platform.

As such, limit all simple attributes to 4k.  This works on all
platforms, and is consistent with all current code.

Signed-off-by: Joel Becker <[email protected]>
Signed-off-by: Mark Fasheh <[email protected]>
fs/configfs/file.c
This page took 0.057054 seconds and 4 git commands to generate.