bql: Fix inconsistency between file mode and attr method.
authorHiroaki SHIMODA <shimoda.hiroaki@gmail.com>
Sat, 14 Jan 2012 07:10:21 +0000 (07:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jan 2012 15:05:55 +0000 (10:05 -0500)
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>
net/core/net-sysfs.c

index f3dbd4f596a4904a99650d18ae73c9a963126aa8..a1727cda03d7bec9b565de4647dd3cff754fcbe8 100644 (file)
@@ -929,7 +929,7 @@ static ssize_t bql_show_inflight(struct netdev_queue *queue,
 }
 
 static struct netdev_queue_attribute bql_inflight_attribute =
-       __ATTR(inflight, S_IRUGO | S_IWUSR, bql_show_inflight, NULL);
+       __ATTR(inflight, S_IRUGO, bql_show_inflight, NULL);
 
 #define BQL_ATTR(NAME, FIELD)                                          \
 static ssize_t bql_show_ ## NAME(struct netdev_queue *queue,           \