diff options
author | Hiroaki SHIMODA <shimoda.hiroaki@gmail.com> | 2012-01-14 02:10:21 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-01-17 10:05:55 -0500 |
commit | 795d9a2538b205d9329f34798ec96503a07b7919 (patch) | |
tree | f6333348915e8b10b5f97734599cd090a1d520d4 /net | |
parent | 1886e5d2c694e7fb59434c717e704e7fd8475d2e (diff) |
bql: Fix inconsistency between file mode and attr method.
There is no store() method for inflight attribute in the
tx-<n>/byte_queue_limits sysfs directory.
So remove S_IWUSR bit.
Signed-off-by: Hiroaki SHIMODA <shimoda.hiroaki@gmail.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/net-sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index f3dbd4f596a4..a1727cda03d7 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c | |||
@@ -929,7 +929,7 @@ static ssize_t bql_show_inflight(struct netdev_queue *queue, | |||
929 | } | 929 | } |
930 | 930 | ||
931 | static struct netdev_queue_attribute bql_inflight_attribute = | 931 | static struct netdev_queue_attribute bql_inflight_attribute = |
932 | __ATTR(inflight, S_IRUGO | S_IWUSR, bql_show_inflight, NULL); | 932 | __ATTR(inflight, S_IRUGO, bql_show_inflight, NULL); |
933 | 933 | ||
934 | #define BQL_ATTR(NAME, FIELD) \ | 934 | #define BQL_ATTR(NAME, FIELD) \ |
935 | static ssize_t bql_show_ ## NAME(struct netdev_queue *queue, \ | 935 | static ssize_t bql_show_ ## NAME(struct netdev_queue *queue, \ |